DocumentSelector

data class DocumentSelector(val documentSelectorSettings: NavigationSpec.DocumentSelector.DocumentSelectorSettings, val documentSelectorAppearance: NavigationSpec.DocumentSelector.DocumentSelectorAppearance, val delegate: <Error class: unknown class>, val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec

Presents a UIDocumentBrowserViewController

Parameters

documentSelectorSettings

The DocumentSelectorSettings for selecting the document

documentSelectorAppearance

The DocumentSelectorAppearance for configuring the appearance of the selector

delegate

The UIDocumentBrowserViewControllerDelegateProtocol added to the UIDocumentBrowserViewController

animated

Specifies whether transition is animated

completion

Optional function called when presentation is completed

Constructors

Link copied to clipboard
constructor(documentSelectorSettings: NavigationSpec.DocumentSelector.DocumentSelectorSettings, documentSelectorAppearance: NavigationSpec.DocumentSelector.DocumentSelectorAppearance, delegate: <Error class: unknown class>, animated: Boolean = false, completion: () -> Unit? = null)

Types

Link copied to clipboard
data class DocumentSelectorAppearance(val interfaceStyle: <Error class: unknown class> = UIDocumentBrowserUserInterfaceStyleLight, val leadingNavigationBarButtonItems: List<<Error class: unknown class>> = emptyList(), val trailingNavigationBarButtonItems: List<<Error class: unknown class>> = emptyList(), val customActions: List<<Error class: unknown class>> = emptyList(), val createTitle: String, val documentAspectRatio: Double = 2.0 / 3.0, val showFileExtensions: Boolean = false)
Link copied to clipboard
data class DocumentSelectorSettings(val types: Set<String>, val allowMultiple: Boolean = false, val allowCreation: Boolean = false)

Configures the settings for a UIDocumentBrowserViewController

Properties

Link copied to clipboard
val animated: Boolean = false
Link copied to clipboard
val completion: () -> Unit? = null
Link copied to clipboard
val delegate: <Error class: unknown class>